﻿@namespace SE.PO.CInterface.Web.Pages.DB.Components
@using SE.PO.CInterface.CuCoding.Signals
@using SE.PO.CInterface.Web.Clients.CuCoding
@inject SignalsCodingClient Client
@inject INotificationService Notice


<FormItem Required Label="设备类型" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
    <Select DataSource="@_deviceTypes"
            TItem="SelectModelItem"
            TItemValue="string"
            @bind-Value="@_selectedDeviceType"
            ValueName="@nameof(SelectModelItem.Value)"
            LabelName="@nameof(SelectModelItem.Label)"
            Style="width: 220px;"
            Placeholder="选则设备类型"
            AllowClear
            OnSelectedItemChanged="OnSelectedDeviceTypeChangedHandler">
    </Select>
</FormItem>

<FormItem Required Label="测量类型" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
    <Select DataSource="@_monitorTypes"
            @bind-Value="@_selectedMonitorType"
            TItem="string"
            TItemValue="string?"
            Style="width: 220px"
            Placeholder="选择测量类型"
            AllowClear
            OnSelectedItemChanged="OnSelectedMonitorTypeChangedHandler">
    </Select>
</FormItem>

<FormItem Required Label="监控信息" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">

    <Select DataSource="@_monitorItems"
            TItem="SelectModelItem"
            TItemValue="string"
            @bind-Value="@_selectedMonitorInfoCode"
            ValueName="@nameof(SelectModelItem.Value)"
            LabelName="@nameof(SelectModelItem.Label)"
            Style="width: 220px"
            Placeholder="选择标准架空信息名称"
            AllowClear OnSelectedItemChanged="OnSelectedMonitorItemChangedHandler">
    </Select>
</FormItem>

<FormItem Required Label="告警信息" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
    <Input Disabled="true"  Style="width: 220px"  @bind-Value="@_selectedAlarmProperity"></Input>
</FormItem>